package interfaz.admin;

import java.awt.Dimension;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;

import util.SocketManager;

public class VentanaAdmin extends JFrame{

	private JPanel panel;
	public static List<SocketManager> sockets = new ArrayList<SocketManager>();
	
	public VentanaAdmin(){
		this.setVisible(true);
		setSize(800,600);
		this.setPreferredSize(new Dimension (800,600));
		setResizable(false);	
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setLocationRelativeTo(null);
		pack();
		
	}
	public JPanel getPanel(){
		return panel;
	}

	public void setPanel(JPanel p){
		panel.setVisible(false);
		p.setVisible(true);
		panel = p;
	}
	
	public static void main(String[] args) {
		//Look & Feel Nimbus
		for(UIManager.LookAndFeelInfo laf:UIManager.getInstalledLookAndFeels()){
			if("Nimbus".equals(laf.getName()))
				try {
					UIManager.setLookAndFeel(laf.getClassName());
				} catch (Exception ex) {
				}
		}

		new VentanaAdmin();

	}
	
}
